import { ViewConfig } from "./types";

import Login from "../pages/login";
import BaseLayout from "../layouts/base-layout";

import Dashboard from "../pages/admin/dashboard";
import MenuAdd from "../pages/admin/menu/add";

import QuestionAdd from "../pages/admin/question/add";
import QuestionType from "../pages/admin/question/category";
import QuestionPreview from "../pages/admin/question/preview";

import UserAdd from "../pages/admin/user/add";
import UserDetail from "../pages/admin/user/detail";

import ExamAdd from "../pages/admin/exam/add";
import ExamEdit from "../pages/admin/exam/edit";
import ExamDetail from "../pages/admin/exam/detail";
import ExamPrepare from "../pages/admin/exam/prepare";

import ManageGrade from "../pages/admin/manage/grade";
import ManageStudent from "../pages/admin/manage/student";
import ManageRoom from "../pages/admin/manage/room";

import TopicList from "../pages/admin/topic/list";
import TopicAdd from "../pages/admin/topic/add";
import TopicDetail from "../pages/admin/topic/detial";
import TopicReview from "../pages/admin/topic/review";
import TopicGrade from "../pages/admin/topic/grade";

/**
 * 前端视图全量配置
 */
const config: ViewConfig = {
    login: {
        id: "E2Pm-fR7M-mLFK-xaem",
        name: "登录",
        path: "/login",
        component: Login,
    },
    admin: {
        id: "jW26-JdFg-so7J-KBvX",
        name: "基本布局组件",
        path: "/admin",
        component: BaseLayout,
    },
    admin_dashboard: {
        id: "3Fbd-iOO1-87iL-nnsL",
        name: "主界面",
        path: "/admin/dashboard",
        component: Dashboard,
    },
    admin_question_create: {
        id: "jLkY-kHCP-T2vZ-Eh9A",
        name: "添加试题",
        path: "/admin/questions/add",
        component: QuestionAdd,
    },
    admin_question_category: {
        id: "i1Gf-Ybiw-Svsu-BhLO",
        name: "试题分类",
        path: "/admin/questions/category",
        component: QuestionType,
    },
    admin_question_preview: {
        id: "yQ31-kGv6-nZcw-3ozA",
        name: "查看试题",
        path: "/admin/questions/preview",
        component: QuestionPreview,
    },
    admin_user_create: {
        id: "yRbb-SEGO-u4g8-ssbN",
        name: "添加用户",
        path: "/admin/user/add",
        component: UserAdd,
    },
    admin_user_detail: {
        id: "GVfA-cHfZ-Oofj-xS9e",
        name: "用户展示",
        path: "/admin/users/detail",
        component: UserDetail,
    },
    admin_exam_create: {
        id: "72oq-30Pz-WAjJ-67Ze",
        name: "添加考试",
        path: "/admin/exams/add",
        component: ExamAdd,
    },
    admin_menu_create: {
        id: "dcnG-cUOr-i5nQ-6rsf",
        name: "添加菜单",
        path: "/admin/menus/add",
        component: MenuAdd,
    },
    admin_exam_edit: {
        id: "o9du-aS6i-GhYA-9G1Q",
        name: "编辑试题",
        path: "/admin/exam/edit",
        component: ExamEdit,
    },
    admin_exam_detail: {
        id: "ZQrZ-3jrX-U7cn-1Qe9",
        name: "试题详情",
        path: "/admin/exam/detail",
        component: ExamDetail,
    },
    admin_grade_manage: {
        id: "uj7l-hSTP-fgk2-v3sT",
        name: "班级管理",
        path: "/admin/grade/manage",
        component: ManageGrade,
    },
    admin_student_manage: {
        id: "SakU-kHTU-5okE-xMnM",
        name: "学生管理",
        path: "/admin/student/manage",
        component: ManageStudent,
    },
    admin_room_manage: {
        id: "XVb6-BgiW-vZFF-kTuF",
        name: "教室管理",
        path: "/admin/room/manage",
        component: ManageRoom,
    },
    admin_exam_index: {
        id: "hxmq-Z0L6-wmgf-mcTm",
        name: "试卷列表",
        path: "/admin/exam/list",
        component: TopicList,
    },
    admin_topic_create: {
        id: "L8tK-QNWC-79Fi-nmSQ",
        name: "创建试卷",
        path: "/admin/topic/add",
        component: TopicAdd,
    },
    admin_exam_detial: {
        id: "3lXq-RMNA-n7YP-coN7",
        name: "试卷详情",
        path: "/admin/exams/detail",
        component: TopicDetail,
    },
    admin_exam_review: {
        id: "U8G3-HXou-axUH-OCTN",
        name: "阅卷管理",
        path: "/admin/exams/review",
        component: TopicReview,
    },
    admin_exam_grade: {
        id: "SZfQ-SBiv-z8dX-Wfzf",
        name: "批卷班级",
        path: "/admin/exams/grade",
        component: TopicGrade,
    },
    admin_exam_prepare: {
        id: "F4mg-dpoJ-IUHm-nJ3S",
        name: "待批试卷",
        path: "/admin/exams/prepare",
        component: ExamPrepare,
    },
};

export default config;
